package com.ruoyi.merchant.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠券发放记录对象 merchant_coupon_issue
 * 
 * @author dongdong
 * @date 2025-10-30
 */
public class MerchantCouponIssue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 发放记录ID */
    private Long id;

    /** 停车订单ID */
    @Excel(name = "停车订单ID")
    private Long orderId;

    /** 商户购买优惠券的订单号 */
    @Excel(name = "优惠券订单号")
    private String orderNo;

    /** 商家ID */
    @Excel(name = "商家ID")
    private Long merchantId;

    /** 优惠券码 */
    @Excel(name = "优惠券码")
    private String couponCode;

    /** 面值 */
    @Excel(name = "面值")
    private BigDecimal faceValue;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String carNum;

    /** 用户openid */
    @Excel(name = "用户openid")
    private String openId;

    /** 用户手机号 */
    @Excel(name = "用户手机号")
    private String phone;

    /** 二维码URL */
    @Excel(name = "二维码URL")
    private String qrCodeUrl;

    /** 状态（0未使用 1已使用 2已过期） */
    @Excel(name = "状态", readConverterExp = "0=未使用,1=已使用,2=已过期")
    private Integer status;

    /** 有效期开始 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期开始", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validStartTime;

    /** 有效期结束 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期结束", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validEndTime;

    /** 使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date useTime;

    /** 入场记录ID */
    @Excel(name = "入场记录ID")
    private String parkingRecordId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setMerchantId(Long merchantId) 
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId() 
    {
        return merchantId;
    }
    public void setCouponCode(String couponCode) 
    {
        this.couponCode = couponCode;
    }

    public String getCouponCode() 
    {
        return couponCode;
    }
    public void setFaceValue(BigDecimal faceValue) 
    {
        this.faceValue = faceValue;
    }

    public BigDecimal getFaceValue() 
    {
        return faceValue;
    }
    public void setCarNum(String carNumber)
    {
        this.carNum = carNumber;
    }

    public String getCarNum()
    {
        return carNum;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setQrCodeUrl(String qrCodeUrl) 
    {
        this.qrCodeUrl = qrCodeUrl;
    }

    public String getQrCodeUrl() 
    {
        return qrCodeUrl;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setValidStartTime(Date validStartTime) 
    {
        this.validStartTime = validStartTime;
    }

    public Date getValidStartTime() 
    {
        return validStartTime;
    }
    public void setValidEndTime(Date validEndTime) 
    {
        this.validEndTime = validEndTime;
    }

    public Date getValidEndTime() 
    {
        return validEndTime;
    }
    public void setUseTime(Date useTime) 
    {
        this.useTime = useTime;
    }

    public Date getUseTime() 
    {
        return useTime;
    }
    public void setParkingRecordId(String parkingRecordId)
    {
        this.parkingRecordId = parkingRecordId;
    }

    public String getParkingRecordId()
    {
        return parkingRecordId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("orderNo", getOrderNo())
            .append("merchantId", getMerchantId())
            .append("couponCode", getCouponCode())
            .append("faceValue", getFaceValue())
            .append("carNum", getCarNum())
            .append("openId", getOpenId())
            .append("phone", getPhone())
            .append("qrCodeUrl", getQrCodeUrl())
            .append("status", getStatus())
            .append("validStartTime", getValidStartTime())
            .append("validEndTime", getValidEndTime())
            .append("useTime", getUseTime())
            .append("parkingRecordId", getParkingRecordId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
